/*
 * @Author: 黄达全
 * @Date: 2024-07-21 11:35:15
 * @LastEditTime: 2024-07-29 17:17:30
 */
/*
 * @Author: 黄达全
 * @Date: 2024-07-21 11:35:15
 * @LastEditTime: 2024-07-29 14:34:39
 */
/*
 * @Author: 黄达全
 * @Date: 2024-07-21 11:35:15
 * @LastEditTime: 2024-07-29 14:33:51
 */
import type {RouteRecordRaw} from "vue-router"
//系统路由
const routes = [
	{
		path: "/",
		name: "admin",
		component: () => import('@/layout/index.vue'),
		children: []
	},
	{
		path: "/login",
		name: "/login",
		component: () => import('@/views/login/index.vue'),
		meta: {
			title: "登录"
		}
	},
	{
		path: "/user_register",
		name: "/user_register",
		component: () => import('@/views/login/userRegister.vue'),
		meta: {
			title: "注册"
		}
	},
	{
		path: "/reset_password",
		component: () => import('@/views/login/resetPassword.vue'),
		meta: {
			title: "重置密码"
		}
	},
   
] as RouteRecordRaw[]


const asyncRoutes=[
    {
        path:"/",
        name:"/",
        component: () => import("@/views/index.vue"),
        meta:{
            title:"后台管理"
        }
    },
    {
        path:"/goods/list",
        component: () => import("@/views/goods/list.vue"),
        name:"/goods/list",
        meta:{
            title:"商品管理"
        }
    },
    {
        path:"/category/list",
        component: () => import("@/views/category/list.vue"),
        name:"/category/list",
        meta:{
            title:"分类列表"
        }
    },
    {
        path:"/user/list",
        component: () => import("@/views/user/list.vue"),
        name:"/user/list",
        meta:{
            title:"用户管理"
        }
    },
    {
        path:"/order/list",
        component: () => import("@/views/order/list.vue"),
        name:"/order/list",
        meta:{
            title:"订单管理"
        }
    },
    {
        path:"/comment/list",
        component: () => import("@/views/comment/list.vue"),
        name:"/comment/list",
        meta:{
            title:"评论管理"
        }
    },
    {
        path:"/image/list",
        component: () => import("@/views/image/list.vue"),
        name:"/image/list",
        meta:{
            title:"图库管理"
        }
    },
    {
        path:"/setting/base",
        component: () => import("@/views/setting/base.vue"),
        name:"/setting/base",
        meta:{
            title:"基础设置"
        }
    },
    {
        path:"/setting/ship",
        component: () => import("@/views/setting/ship.vue"),
        name:"/setting/ship",
        meta:{
            title:"物流设置"
        }
    },
    {
        path:"/setting/buy",
        component: () => import("@/views/setting/buy.vue"),
        name:"/setting/buy",
        meta:{
            title:"交易设置"
        }
    },
    {
        path:"/coupon/list",
        component: () => import("@/views/coupon/list.vue"),
        name:"/coupon/list",
        meta:{
            title:"优惠卷管理"
        }
    },
    {
        path:"/level/list",
        component: () => import("@/views/level/list.vue"),
        name:"/level/list",
        meta:{
            title:"会员等级"
        }
    },
    {
        path:"/notice/list",
        component: () => import("@/views/notice/list.vue"),
        name:"/notice/list",
        meta:{
            title:"公告管理"
        }
    },
    {
        path:"/manager/list",
        component: () => import("@/views/manager/list.vue"),
        name:"/manager/list",
        meta:{
            title:"管理员管理"
        }
    },
    {
        path:"/access/list",
        component: () => import("@/views/access/list.vue"),
        name:"/access/list",
        meta:{
            title:"权限管理"
        }
    },
    {
        path:"/role/list",
        component: () => import("@/views/role/list.vue"),
        name:"/role/list",
        meta:{
            title:"角色管理"
        }
    },
    {
        path:"/skus/list",
        component: () => import("@/views/skus/list.vue"),
        name:"/skus/list",
        meta:{
            title:"规格管理"
        }
    },
    {
        path:"/distribution/index",
        component: () => import("@/views/distribution/index.vue"),
        name:"/distribution/index",
        meta:{
            title:"分销员管理"
        }
    },
    {
        path:"/distribution/setting",
        component: () => import("@/views/distribution/setting.vue"),
        name:"/distribution/setting",
        meta:{
            title:"分销设置"
        }
    }
] as RouteRecordRaw[]
export default routes
export {asyncRoutes};
